package com.wu.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wu.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


import java.util.List;

@Mapper//这个一定要去主启动类的MapperScanner去扫描这个类
public interface UserDao extends BaseMapper<User>{

    List<User> findAll();

    @Select("select * from student where id=#{id}")
    User findstudent(int id);

}
